﻿@model MODEL.EsDetail
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/bootstrapCss/bootstrap.min.css" rel="stylesheet" />
    <title>添加</title>
</head>
<body style="font-family:'Microsoft YaHei'">
    <div class="container">
        <h2>添加</h2>
        <div class="container">
            @using (Html.BeginForm("Add", "EsDetail", FormMethod.Post, new { @class = "form-horizontal", @style = "width:100px;" }))
            {
                <div class="form-group">
                    <span>类别    :</span>
                    @Html.DropDownListFor(q => q.cateThirdId, ViewBag.CateThird as List<SelectListItem>, new { @class = "form-control", @style = "width:300px;" })
                </div>
                <div class="form-group">
                    <span>新旧   :</span>
                    @Html.DropDownListFor(q => q.oldNew, ViewBag.OldNew as List<SelectListItem>, new { @class = "form-control", @style = "width:100px;" })
                </div>
                <div class="form-group">
                    <span>转让价格</span>
                    @Html.TextBoxFor(q => q.price, new { @class = "form-control", @style = "width:100px;" })
                </div>
                <div class="form-group">
                    <span>物品图片</span>
                    <button class="btn btn-primary">上传图片</button>
                </div>
                <div class="form-group">
                    <span>标题</span>
                    @Html.TextBoxFor(q => q.title, new { @class = "form-control", @style = "width:400px;" })
                </div>
                <div class="form-group">
                    <span>详细说明</span>
                    @Html.TextAreaFor(q => q.description, new { @class = "form-control", @style = "width:600px;height:200px" })
                </div>
                <div class="form-group">
                    <span>联系人</span>
                    @Html.TextBoxFor(q => q.name, new { @class = "form-control", @style = "width:150px;" })
                </div>
                <div class="form-group">
                    <span>联系电话</span>
                    @Html.TextBoxFor(q => q.telephone, new { @class = "form-control", @style = "width:150px;" })
                </div>
                <div class="form-group">
                    <span>qq</span>
                    @Html.TextBoxFor(q => q.qq, new { @class = "form-control", @style = "width:150px;" })
                </div>
                <input type="submit" class="btn btn-lg btn-success"  value="提交啊"/>
                <br/>

            }
        </div>
    </div>
</body>
</html>
